// import com.alibaba.druid.sql.ast.SQLExpr_ptr;
// import com.alibaba.druid.sql.ast.SQLName_ptr;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

#include "MySqlShowTriggersStatement.h"
#include "../../visitor/MySqlASTVisitor.h"
#include "../../../../ast/SQLExpr.h"
#include "../../../../ast/SQLName.h"

SQLName_ptr MySqlShowTriggersStatement::getDatabase()
{
  return database;
}

void MySqlShowTriggersStatement::setDatabase(SQLName_ptr database)
{
  this->database = database;
}

SQLExpr_ptr MySqlShowTriggersStatement::getLike()
{
  return like;
}

void MySqlShowTriggersStatement::setLike(SQLExpr_ptr like)
{
  this->like = like;
}

SQLExpr_ptr MySqlShowTriggersStatement::getWhere()
{
  return where;
}

void MySqlShowTriggersStatement::setWhere(SQLExpr_ptr where)
{
  this->where = where;
}

void MySqlShowTriggersStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MySqlShowTriggersStatement)))
  {
    acceptChild(visitor, database);
    acceptChild(visitor, like);
    acceptChild(visitor, where);
  }
  visitor->endVisit(SharedObject(MySqlShowTriggersStatement));
}
